// UEEntityOsnapMode.cpp: implementation of the UEEntityOsnapMode class.
//
//////////////////////////////////////////////////////////////////////

#ifdef _ARX2000

#include "stdafx.h"
#include "pdarx.h"
#include "UEEntityOsnapMode.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

UEEntityOsnapMode::UEEntityOsnapMode()
{
	this->m_pGlyph = NULL;
	this->m_pRCOsnapInfo = NULL;
	this->m_strGlobalModel = new TCHAR[128];
	this->m_strLocalModel = new TCHAR[128];
	this->m_strTooltip = new TCHAR[128];
}

UEEntityOsnapMode::~UEEntityOsnapMode()
{
	if ( this->m_pGlyph )
		delete this->m_pGlyph;
	if ( this->m_strGlobalModel )
		delete this->m_strGlobalModel;
	if ( this->m_strLocalModel )
		delete this->m_strLocalModel;
	if ( this->m_strTooltip )
		delete this->m_strTooltip;
}

const MYCHAR* UEEntityOsnapMode::localModeString() const
{
    return this->m_strLocalModel;
}

const MYCHAR* UEEntityOsnapMode::globalModeString() const
{
    return this->m_strGlobalModel;
}

const AcRxClass* UEEntityOsnapMode::entityOsnapClass() const
{
	return this->m_pRCOsnapInfo;
}

AcGiGlyph* UEEntityOsnapMode::glyph() const
{
    return this->m_pGlyph;
}

const MYCHAR* UEEntityOsnapMode::tooltipString() const
{
    return this->m_strTooltip;
}

void UEEntityOsnapMode::SetGlobalModelString ( LPCTSTR strGlobalModel )
{
	STRCPY ( this->m_strGlobalModel, strGlobalModel );
}

void UEEntityOsnapMode::SetLocalModelString ( LPCTSTR strLocalModel )
{
	STRCPY ( this->m_strLocalModel, strLocalModel );
}

void UEEntityOsnapMode::SetTooltipString ( LPCTSTR strTooltip )
{
	STRCPY ( this->m_strTooltip, strTooltip );
}

void UEEntityOsnapMode::SetGlyph ( AcGiGlyph* pGlyph )
{
	this->m_pGlyph = pGlyph;
}

void UEEntityOsnapMode::SetEntityOsnapClass ( AcRxClass* pRCOsnapInfo )
{
	this->m_pRCOsnapInfo = pRCOsnapInfo;
}


#endif